package cn.zysuyuan.item.controller;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.MedicinalProductBaseEdition;
import cn.zysuyuan.item.service.MedicinalProductBaseEditionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-02-18 19:26
 */

@Api(tags="药品生产基地关联的归档信息接口")
@RestController
@RequestMapping("medicinalProductBaseEdition")
public class MedicinalProductBaseEditionController {

    @Autowired
    private MedicinalProductBaseEditionService medicinalProductBaseEditionService;

    @ApiOperation(value="列表管理", notes="列表管理")
    @GetMapping("list")
    public ResponseEntity<PageResult<MedicinalProductBaseEdition>> select(@RequestParam Map<String,Object> map) {
        PageResult<MedicinalProductBaseEdition> result  = medicinalProductBaseEditionService.selectList(map);
        return  ResponseEntity.ok(result);
    }
}
